package com.longdaji.decoration.data.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by longtao on 2018/3/13.
 */

public class GoodsCategory {
    @Override
    public String toString() {
        return "GoodsCategory{" +
                "secondCategory=" + secondCategory +
                '}';
    }

    private List<SecondCategory> secondCategory;

    public List<SecondCategory> getSecondCategory() {
        return secondCategory;
    }

    public void setSecondCategory(List<SecondCategory> secondCategory) {
        this.secondCategory = secondCategory;
    }

    public static class SecondCategory implements Parcelable {
        private String cateId;
        private String categoryName;
        private String parentCateId;
        private String addTime;
        private String delFlag;
        private String imgAddress;

        protected SecondCategory(Parcel in) {
            cateId = in.readString();
            categoryName = in.readString();
            parentCateId = in.readString();
            addTime = in.readString();
            delFlag = in.readString();
            imgAddress = in.readString();
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(cateId);
            dest.writeString(categoryName);
            dest.writeString(parentCateId);
            dest.writeString(addTime);
            dest.writeString(delFlag);
            dest.writeString(imgAddress);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public static final Creator<SecondCategory> CREATOR = new Creator<SecondCategory>() {
            @Override
            public SecondCategory createFromParcel(Parcel in) {
                return new SecondCategory(in);
            }

            @Override
            public SecondCategory[] newArray(int size) {
                return new SecondCategory[size];
            }
        };

        @Override
        public String toString() {
            return "SecondCategory{" +
                    "cateId='" + cateId + '\'' +
                    ", categoryName='" + categoryName + '\'' +
                    ", parentCateId='" + parentCateId + '\'' +
                    ", addTime='" + addTime + '\'' +
                    ", delFlag='" + delFlag + '\'' +
                    ", imgAddress='" + imgAddress + '\'' +
                    '}';
        }

        public String getCateId() {
            return cateId;
        }

        public void setCateId(String cateId) {
            this.cateId = cateId;
        }

        public String getCategoryName() {
            return categoryName;
        }

        public void setCategoryName(String categoryName) {
            this.categoryName = categoryName;
        }

        public String getParentCateId() {
            return parentCateId;
        }

        public void setParentCateId(String parentCateId) {
            this.parentCateId = parentCateId;
        }

        public String getAddTime() {
            return addTime;
        }

        public void setAddTime(String addTime) {
            this.addTime = addTime;
        }

        public String getDelFlag() {
            return delFlag;
        }

        public void setDelFlag(String delFlag) {
            this.delFlag = delFlag;
        }

        public String getImgAddress() {
            return imgAddress;
        }

        public void setImgAddress(String imgAddress) {
            this.imgAddress = imgAddress;
        }
    }


}
